home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / xbtx.lha / Source / Control.h < prev    next >
C/C++ Source or Header  |  1995-10-13  |  10KB  |  226 lines

  1. /*
  2. **    $Id: Control.h 1.5 1995/10/13 11:45:36 olsen Exp olsen $
  3. **
  4. **    :ts=8
  5. */
  6.  
  7. /*
  8.  * Copyright (c) 1992, 1993 Arno Augustin, Frank Hoering, University of
  9.  * Erlangen-Nuremberg, Germany.
  10.  * All rights reserved.
  11.  *
  12.  * Redistribution and use in source and binary forms, with or without
  13.  * modification, are permitted provided that the following conditions
  14.  * are met:
  15.  * 1. Redistributions of source code must retain the above copyright
  16.  *    notice, this list of conditions and the following disclaimer.
  17.  * 2. Redistributions in binary form must reproduce the above copyright
  18.  *    notice, this list of conditions and the following disclaimer in the
  19.  *    documentation and/or other materials provided with the distribution.
  20.  * 3. All advertising materials mentioning features or use of this software
  21.  *    must display the following acknowledgement:
  22.  *      This product includes software developed by the University of
  23.  *      Erlangen-Nuremberg, Germany.
  24.  * 4. Neither the name of the University nor the names of its contributors
  25.  *    may be used to endorse or promote products derived from this software
  26.  *    without specific prior written permission.
  27.  *
  28.  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
  29.  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  30.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
  31.  * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  32.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  33.  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  34.  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  35.  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  36.  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  37.  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38.  *
  39.  * This software has not been validated by the ``Bundesamt fuer Zulassungen in
  40.  * der Telekommunikation'' of the ``Deutsche Bundepost Telekom'' and thus
  41.  * must not be used for accessing the BTX-Network of the Telekom in Germany.
  42.  *
  43.  * Diese Software hat keine Zulassung durch das Bundesamt fuer Zulassungen in
  44.  * der Telekommunikation der Deutschen Bundespost Telekom und darf daher nicht
  45.  * am Netz der Deutschen Bundespost Telekom in Deutschland betrieben werden.
  46.  */
  47.  
  48. #ifndef _CONTROL_H
  49. #define _CONTROL_H 1
  50.  
  51. /* primary control function set (page 119  and  annex 6) */
  52.  
  53. #define NUL 0x00         /* NOP time filler          (level 2) */
  54. #define SOH 0x01         /* start of heading         (level 2) */
  55. #define STX 0x02         /* start text               (level 2) */
  56. #define ETX 0x03         /* end text                 (level 2) */
  57. #define EOT 0x04         /* end of transmission      (level 2) */
  58. #define ENQ 0x05         /* enquiry                  (level 2) */
  59. #define ACK 0x06         /* acknowledge              (level 2) */
  60. #define ITB 0x07         /* end intermediate block   (level 2) */
  61. #define APB 0x08         /* active position back     (level 6) */
  62. #define APF 0x09         /* active position forward  (level 6) */
  63. #define APD 0x0a         /* active position down     (level 6) */
  64. #define APU 0x0b         /* active position up       (level 6) */
  65. #define CS  0x0c         /* clear screen             (level 6) */
  66. #define APR 0x0d         /* active position return   (level 6) */
  67. #define LS1 0x0e         /* locking shift 1          (level 6) */
  68. #define LS0 0x0f         /* locking shift 0          (level 6) */
  69. #define DLE 0x10         /* data link escape         (level 2) */
  70. #define CON 0x11         /* cursor on                (level 6) */
  71. #define RPT 0x12         /* repeat last character    (level 6) */
  72. #define INI 0x13         /* initiator '*'            (level 7) */
  73. #define COF 0x14         /* cursor off               (level 6) */
  74. #define NAK 0x15         /* negative acknowledge     (level 2) */
  75. #define SYN 0x16         /*                          (level 2) */
  76. #define ETB 0x17         /* end textblock            (level 2) */
  77. #define CAN 0x18         /* cancel, clear to eol     (level 6) */
  78. #define SS2 0x19         /* single shift for G2 SET  (level 6) */
  79. #define DCT 0x1a         /* terminate data collect   (level 7) */
  80. #define ESC 0x1b         /* escape                   (level 6) */
  81. #define TER 0x1c         /* terminator '#'           (level 7) */
  82. #define SS3 0x1d         /* single shift for G3 SET  (level 6) */
  83. #define APH 0x1e         /* active position home     (level 6) */
  84. #define APA 0x1f         /* active position          (level 6) */
  85. #define US  0x1f         /* unit separator (= APA)   (level 6) */
  86.  
  87.  
  88. /* supplementary control function set repertory 1 (serial) C1S (page 121) */
  89.  
  90. #define ABK 0x80         /* Alphanumeric black   */
  91. #define ANR 0x81         /* Alphanumeric red     */
  92. #define ANG 0x82         /* Alphanumeric green   */
  93. #define ANY 0x83         /* Alphanumeric yellow  */
  94. #define ANB 0x84         /* Alphanumeric blue    */
  95. #define ANM 0x85         /* Alphanumeric magenta */
  96. #define ANC 0x86         /* Alphanumeric cyan    */
  97. #define ANW 0x87         /* Alphanumeric white   */
  98. #define FSH 0x88         /* Flashing begin  */
  99. #define STD 0x89         /* Flashing steady */
  100. #define EBX 0x8a         /* End of window   */
  101. #define SBX 0x8b         /* Start of window */
  102. #define NSZ 0x8c         /* Normal size     */
  103. #define DBH 0x8d         /* Double height   */
  104. #define DBW 0x8e         /* Double width    */
  105. #define DBS 0x8f         /* Double size     */
  106. #define MBK 0x90         /* Mosaic black   */
  107. #define MSR 0x91         /* Mosaic red     */
  108. #define MSG 0x92         /* Mosaic green   */
  109. #define MSY 0x93         /* Mosaic yellow  */
  110. #define MSB 0x94         /* Mosaic blue    */
  111. #define MSM 0x95         /* Mosaic magenta */
  112. #define MSC 0x96         /* Mosaic cyan    */
  113. #define MSW 0x97         /* Mosaic white   */
  114. #define CDY 0x98         /* Conceal display  */
  115. #define SPL 0x99         /* Stop lining      */
  116. #define STL 0x9a         /* Start lining     */
  117. #define CSI 0x9b         /* Control sequence introducer */
  118. #define BBD 0x9c         /* Black background */
  119. #define NBD 0x9d         /* New background   */
  120. #define HMS 0x9e         /* Hold mosaic      */
  121. #define RMS 0x9f         /* Release mosaic   */
  122.  
  123.  
  124. /* supplementary control function set repertory 2 (parallel) C1P (page 122) */
  125.  
  126. #define BKF 0x80         /* Black   foreground */
  127. #define RDF 0x81         /* Red     foreground */
  128. #define GRF 0x82         /* Green   foreground */
  129. #define YLF 0x83         /* Yellow  foreground */
  130. #define BLF 0x84         /* Blue    foreground */
  131. #define MGF 0x85         /* Magenta foreground */
  132. #define CNF 0x86         /* Cyan    foreground */
  133. #define WHF 0x87         /* White   foreground */
  134. /*      FSH 0x88            Flashing begin  */
  135. /*      STD 0x89            Flashing steady */
  136. /*      EBX 0x8a            End of window   */
  137. /*      SBX 0x8b            Start of window */
  138. /*      NSZ 0x8c            Normal size     */
  139. /*      DBH 0x8d            Double height   */
  140. /*      DBW 0x8e            Double width    */
  141. /*      DBS 0x8f            Double size     */
  142. #define BKB 0x90         /* Black   background */
  143. #define RDB 0x91         /* Red     background */
  144. #define GRB 0x92         /* Green   background */
  145. #define YLB 0x93         /* Yellow  background */
  146. #define BLB 0x94         /* Blue    background */
  147. #define MGB 0x95         /* Magenta background */
  148. #define CNB 0x96         /* Cyan    background */
  149. #define WHB 0x97         /* White   background */
  150. /*      CDY 0x98            Conceal display  */
  151. /*      SPL 0x99            Stop lining      */
  152. /*      STL 0x9a            Start lining     */
  153. /*      CSI 0x9b            Control sequence introducer */
  154. #define NPO 0x9c         /* Normal polarity        */
  155. #define IPO 0x9d         /* Inverted polarity      */
  156. #define TRB 0x9e         /* Transparent background */
  157. #define STC 0x9f         /* Stop conceal           */
  158.  
  159.  
  160.  
  161. /*
  162.  * control code sequences (annex 6)
  163.  *
  164.  
  165. US 0x20  TFI ...         (annex 7.3)
  166. US 0x23  define DRCS     (page 86)
  167. US 0x26  define color
  168. US 0x2d  define format
  169. US 0x2f  reset
  170. US <y> <x>   position cursor at x, y
  171.  
  172. ESC 0x22 0x40  invoke serial   C1 set       (page 116)
  173. ESC 0x22 0x41  invoke parallel C1 set
  174. ESC 0x23 0x21 <Fe>  full row    attributes  (page 134)
  175. ESC 0x23 0x20 <Fe>  full screen attributes  (page 136)
  176.               <Fe> = BKB(C1P 0x50), RDB(C1P 0x51), ....
  177.  
  178. ESC 0x28 <Fi>    G0
  179. ESC 0x29 <Fi>    G1
  180. ESC 0x2a <Fi>    G2
  181. ESC 0x2b <Fi>    G3
  182.      <Fi> = 0x40        primary graphic set
  183.             0x62        suppl.  graphic set
  184.             0x63        2nd suppl. mosaic set
  185.             0x64        3rd suppl. mosaic set
  186.             0x20 0x40   DRCS
  187.  
  188. ESC 0x7e  LS1R   locking shift 1 right  (page 114)
  189. ESC 0x6e  LS2    locking shift 2
  190. ESC 0x7d  LS2R   locking shift 2 right
  191. ESC 0x6f  LS3    locking shift 3
  192. ESC 0x7c  LS3R   locking shift 3 right
  193.  
  194.  
  195. CSI 0x30 0x41  IVF    inverted flash          (page 131)
  196. CSI 0x31 0x41  RIF    reduced intesity flash
  197. CSI 0x32 0x41  FF1    fast flash 1
  198. CSI 0x33 0x41  FF2    fast flash 2
  199. CSI 0x34 0x41  FF3    fast flash 3
  200. CSI 0x35 0x41  ICF    increment flash
  201. CSI 0x36 0x41  DCF    decrement flash
  202.  
  203. CSI 0x42  STC    stop conceal (same as C1P STC)  (page 133)
  204.  
  205. CSI 0x32 0x53  MMS    marked mode start
  206. CSI 0x32 0x54  MMT    makred mode stop
  207.  
  208. CSI 0x31 0x50  PMS    protected mode start
  209. CSI 0x31 0x51  PMC    protected mode cancel
  210.  
  211. CSI 0x30 0x40  CT1    color table 1  (page 137)
  212. CSI 0x31 0x40  CT2    color table 2
  213. CSI 0x32 0x40  CT3    color table 3
  214. CSI 0x33 0x40  CT4    color table 4
  215.  
  216. CSI <URT> <URU> 0x3b <LRT> <LRU> 0x55   CSA   create scrolling area
  217. CSI <URT> <URU> 0x3b <LRT> <LRU> 0x56   DSA   delete scrolling area
  218. CSI 0x30 0x60  SCU    scroll up
  219. CSI 0x31 0x60  SCD    scroll down
  220. CSI 0x32 0x60  AIS    activate   implicit scrolling
  221. CSI 0x33 0x60  DIS    deactivate implicit scrolling
  222.  
  223.  */
  224.  
  225. #endif    // _CONTROL_H
  226.